x11: Try harder to find the right monitor
authorMatthias Clasen <mclasen@redhat.com>
Tue, 27 Apr 2021 03:18:50 +0000 (23:18 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 27 Apr 2021 03:20:10 +0000 (23:20 -0400)
commitf37662c6551ee8dc34fd00c4ebd4f71dd30bc663
tree63fc11d5121f9d31772f5bc30f66a9aa9e08f30a
parent1a12ea6e5a3369dc0a5bfe21e2b11504e1ad9401
x11: Try harder to find the right monitor

If we deal with a panel, we end up with no monitor,
and crash, which isn't great and isn't necessary.

Fixes: #3900
gdk/x11/gdksurface-x11.c